#声明库函数的两种方法：
#1
import math
num=math.pow(1+0.01,365)
print(num)
#2
from math import pow
num = pow(1+0.01,365)
print(num)



a='yes'
b='no'
c='You ccrreated your own destiny'

#连接：连接两个字符串
result1 = a+b
print(result1)

#复制：将该字符串复制n遍
result2 = a*6
print(result2)

#判断：判断a中有没有b
result3 = a in b
print(result3)

#索引：索引字符串中第几个字符
result4 = str(c[2])
print(result4)

#切片；切出字符串中某个范围的字符
result5 = str(c[4:13])
print(result5)
